Reports for WPF の CustomFields アセンブリを使用して、カスタムフィールドを含むレポートをロードできます。C1ReportDesigner アプリケーションによって作成されたレポートは、以下のカスタムフィールドを提供します。
以下に示すような一部のカスタムフィールドを参照するには、追加の ComponentOne アセンブリが必要です。
次の例は、Chart カスタムフィールドを含むレポート定義を作成し、それを WPF アプリケーション内の C1DocumentViewer にロードしてレンダリングします。

| C# |
コードのコピー
|
|---|---|
public MainWindow() { InitializeComponent(); var report = new C1.C1Report.C1Report(); report.Load("ChartField.xml", "Chart"); this.c1DocumentViewer.Document = report.C1Document.FixedDocumentSequence; } |
|
| VB |
コードのコピー
|
|---|---|
Public Sub New() InitializeComponent() Dim report = New C1.C1Report.C1Report() report.Load("ChartField.xml", "Chart") Me.c1DocumentViewer.Document = report.C1Document.FixedDocumentSequence End Sub |
|
